#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "FXLabel.h"
#import "HPGrowingTextView.h"
#import <StoreKit/SKStoreProductViewController.h>

@protocol BaseUIViewControllerDelegate;

@interface BaseUIViewController : UIViewController <MBProgressHUDDelegate,UIActionSheetDelegate,UITextFieldDelegate,HPGrowingTextViewDelegate,SKStoreProductViewControllerDelegate> {
    MBProgressHUD               *baseHud;
    FXLabel                     *baseTitle;
    id<BaseUIViewControllerDelegate>  baseCommentOwner;
}

@property (nonatomic,retain) UIView                      *baseCommentView;
@property (nonatomic,retain) HPGrowingTextView           *baseCommentField;

- (void)baseShowInfoHud:(NSString *)text andIsTop:(BOOL)isTop;
//- (void)baseShowHUD:(NSString *)text atY:(float)y;
- (void)baseShowLoginSheet;
- (void)baseLogin;
- (void)baseRegister;
- (void)baseInitComment:(id<BaseUIViewControllerDelegate>)pCommentOwner btnName:(NSString *)btnStr;
- (void)baseShowComment;
- (void)baseHideComment;
- (void)baseOnlyComment;
- (void)presentAppStoreForID:(NSNumber *)appStoreID inView:(UIView *)view withDelegate:(id<SKStoreProductViewControllerDelegate>)delegate withURL:(NSURL *)appStoreURL;

@end

@protocol BaseUIViewControllerDelegate <NSObject>

@optional
- (void)BVCcommentHide:(UIView *)commentView;
- (void)BVCcommentDone:(HPGrowingTextView *)commentField;

@end